#include "event.hpp"
#include "factory.hpp"

class Init : public Event
{
  private:
    bool hasTriggered = false;

  public:
    Init(const nlohmann::json &j) : Event(j) {}

    virtual bool CheckAct() override
    {
        if (hasTriggered)
            return false;
        hasTriggered = true;
        return true;
    }
};
static Factory<Event>::Register<Init> reg("init");